
****************************************************************************************************
*Figure A_5: Recorded grain stock as of June 2017, by treatment status
*This figure shows the distribution of grain (i.e. rice and wheat) in kilograms held by FPSs at the end of June 2017 according to government records, separately for shops in treated and control blocks
****************************************************************************************************

*read disbursement data to get full list of dealers 
use "${AdminDataDir}/NICstock_cleaned_fpslevel.dta",clear
 

 *******************************************************************
 *plot
 ***********************************************************************

 
twoway (histogram  stock_grain if treatment==1 & stock_grain<=24000, fraction start(0) width(720) color("151 184 222")) ///
       (histogram stock_grain if treatment==0 & stock_grain<=24000, fraction start(0) width(720) ///
	   fcolor(none) lcolor(black)), graphregion(color(white)) plotregion(color(white)) legend(order(1 "Treated" 2 "Control" )) xlabel(,format(%9.0gc)) legend(region(color(white))) ///
	   xtitle("Kilograms") ytitle("Proportion of shops") bgcolor(white)
	   
gr export "${OutputDir}/FigureA_5.eps", as(eps) preview(off) replace
!epstopdf "${OutputDir}/FigureA_5.eps"

 
 
 
 
